body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.container {
    display: flex;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.calculator {
    max-width: 400px;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 20px;
}

.interest-calculator {
    max-width: 400px;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.calculator-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.display {
    text-align: right;
    font-size: 24px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#expression {
    font-size: 24px;  /* 将字体大小设置为 24px */
}

#result {
    font-size: 18px;  /* 保持字体大小为 18px */
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 将列数改为6 */
    grid-gap: 5px;
}

.button {
    font-size: 16px;
    padding: 10px;
    text-align: center;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.button.orange {
    background-color: #fcb70a;
}

.button.green {
    background-color: green;
}

.button.yellow {
    background-color: #fecc11;
}

.button.grey {
    background-color: grey;
}

.button.lightblue {
    background-color: lightblue;
}

.button.lightgreen {
    background-color: lightgreen;
}

.button.darkblue {
    background-color: #61649f;
}

.button.darkgreen {
    background-color: #12aa9c;
}



.history {
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    width: 60%; /* 调整容器宽度为页面宽度的 60% */
    margin: 0 auto; /* 居中容器 */
  }
  
  /* 历史记录标题样式 */
  .history h2 {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
    text-align: center;
  }
  
  /* 历史记录列表样式 */
  .history ul {
    list-style: none;
    padding: 0;
  }
  
  /* 历史记录项样式 */
  .history li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
  }
  
  /* 鼠标悬停历史记录项时的样式 */
  .history li:hover {
    background-color: #e5e5e5;
  }
  
  